<extend name="./Public/layout/default.html"/>


<!--<php>if(){</php>-->

<!--<php>}</php>-->

<block name="top">
    <php>$id =session("role_id")</php>
    <php>if($id==1){</php>
        <ul class="el-menu el-menu--horizontal el-menu--dark">
            <a href="{:U('/Admin/main')}"><li class="el-menu-item">主页</li></a>
            <a href="{:U('/Admin/shop')}"><li class="el-menu-item">商品管理</li></a>
            <a href="{:U('/Admin/Bike')}"><li class="el-menu-item">订单管理</li></a>
            <a href="{:U('/Admin/Emtpy/index')}"><li class="el-menu-item">退出登录</li></a>
        </ul>
    <php>}else if($id==2 || $id==3){</php>
    <ul class="el-menu el-menu--horizontal el-menu--dark">
        <a href="{:U('/Admin/Bike')}"><li class="el-menu-item">主页</li></a>
        <a href="{:U('/Admin/Bike')}"><li class="el-menu-item">订单管理</li></a>
        <a href="{:U('/Admin/Emtpy/index')}"><li class="el-menu-item">退出登录</li></a>
    </ul>
    <php>}</php>
</block>

<block name="title">订单管理<a href="{:U('/Admin/Bike/klio')}">已发货订单</a><a href="{:U('/Admin/Bike/wrf')}">所有订单</a></block>

<block name="content">
    <table class="table">
        <tr>
            <th>收货人姓名</th>
            <th>收货人电话</th>
            <th>商品名称</th>
            <th>发货地址</th>
            <th>邮政编码</th>
            <th>付款时间</th>
            <th>状态</th>
            <th>&nbsp;</th>
        </tr>
        <!--<php>var_dump($name)</php>-->
        <foreach name="name" item="names">
                <tr>
                    <td>{$names.names}</td>
                    <td>{$names.phones}</td>
                    <td>{$names.shopname}</td>
                    <td>{$names.address}</td>
                    <td>{$names.you}</td>
                    <td>{$names.f_time}</td>
                    <td>{$names.ad}</td>
                    <php>if($names['ad'] == "未发货"){</php>
                        <td><a href="{:U('/Admin/Bi')}?id={$names.inpus}">发货</a></td>
                    <php>}</php>
                </tr>
        </foreach>
    </table>
</block>